package com.turing.post.util;

/**
 * 业务处理返回类
 * @author 张小盼
 * 
 */
@SuppressWarnings("serial")
public class PCPSWebReturn implements java.io.Serializable {

	/**
	 * 判断业务是否成功
	 */
	private boolean isSuccess;

	/**
	 * 失败返回码
	 */
	private String excepCode;

	/**
	 * 返回异常信息
	 */
	private String excepMessage;

	public PCPSWebReturn() {

	}

	/**
	 *  新增、修改、删除 返回成功
	 * @param isSuccess
	 */
	public PCPSWebReturn(boolean isSuccess) {
		this.isSuccess = isSuccess;
	}
	/**
	 * 新增、修改、删除 返回失败
	 * @param isSuccess
	 */
	public PCPSWebReturn(boolean isSuccess, String excepCode,
			String excepMessage) {
		this.isSuccess = isSuccess;
		this.excepCode = excepCode;
		this.excepMessage = excepMessage;
	}

	public boolean isSuccess() {
		return isSuccess;
	}

	public void setSuccess(boolean isSuccess) {
		this.isSuccess = isSuccess;
	}

	public String getExcepCode() {
		return excepCode;
	}

	public void setExcepCode(String excepCode) {
		this.excepCode = excepCode;
	}

	public String getExcepMessage() {
		return excepMessage;
	}

	public void setExcepMessage(String excepMessage) {
		this.excepMessage = excepMessage;
	}
}
